<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,user-scalable=no,minimum-scale=1,maximum-scale=1">
<title>乐慧城市</title>
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_957012_6iv6t5grsf.css">
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
<script src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script charset="utf-8" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
</head>
<body>
<div id="app">
</div>
<script>window.addEventListener("resize", htmlFontSize, false);
      window.onload = function () {
        htmlFontSize();
      };
      function htmlFontSize() {
        let h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
        let w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
        let width = w > h ? h : w;
        width = width > 1080 ? 1080 : width;
        let fz = ~~(width * 100000 / 108) / 10000;
        document.getElementsByTagName("html")[0].style.cssText = 'font-size: ' + fz + "px";
        let realfz = ~~(+window.getComputedStyle(document.getElementsByTagName("html")[0]).fontSize.replace('px', '') * 10000) / 10000;
        if (fz !== realfz) {
          document.getElementsByTagName("html")[0].style.cssText = 'font-size: ' + fz * (fz / realfz) + "px";
          document.getElementsByTagName("body")[0].style.cssText = 'font-size: ' + fz * (fz / realfz) + "px";
        }
      }</script>
</body>
</html>
